const path = require('path')
const querystring = require('querystring')

let url = 'https://nodejs.org/dist/latest-v14.x/docs/api/path.html#path_path_parse_path?name=zs&age=19'
let obj = path.parse(url)
//  let obj = path.parse(url) let obj = path.parse(url)
console.log(obj)

let str='name=zs&age=19'
let  obj1=querystring.parse(str,true)
console.log(obj1)


const url1 = require('url');
const myURL = url1.parse(url, true);
const myURL1 = url1.parse(url)
const myURL2 = url1.parse(url,true)
console.log(myURL);
console.log(myURL1)